<template>
  <div class="right-container">
    <h3>Right组件</h3>
    <button @click='postInfo' >发起Post请求</button>
  </div>
</template>
<script>
export default {
  name: 'right',
  methods: {
    async postInfo () {
      const { data: res } = await this.$http.post('/api/post', { name: 'zs', age: 18 })
      console.log(res)
    }
  }
}
</script>
<style lang="less" scoped>
  .right-container {
    background-color: lightblue;
    min-height: 200px;
    flex: 1;
  }
</style>
